package test;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

import server.Constants;

public class Client extends Thread{

	public Client() {
		
	}
	
	
	public void run() {
		try {
			Socket s = new Socket("85.24.188.49", Constants.PORT);
			OutputStream os = s.getOutputStream();
			os.write(4);
			os.flush();
			os.write(2);
			os.flush();
			os.close();
			s.close();
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
	}
}
